<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="/user/login" method="post">
    <input type="hidden"th:if="${_csrf}!=null"th:value="${_csrf.token}"name="_csrf"/>
    用户名:
    <input type="text" name="username"/>
    <br/>
    密码:
    <input type="test" name="password"/>

    <br/>
    <input type="submit" value="login"/>
    记住我：
    <input type="checkbox"name="remember-me"title="记住密码"/><br/>
</form>
</body>
</html>